/**
 * Created by limei on 2018/6/11.
 */
export default {
  map: {
    domain: '//117.156.126.6:9080',
    spriteUrl: this.domain + '/minemapapi/v2.0.0/sprite/sprite',
    fontUrl: this.domain + '/minemapapi/v2.0.0/fonts',
    // solu: 4209,
    solu: 5571,
    // token: 'eeea35fb6c984047bb19e25463ee18e5',
    token: '54c0f0f11532453484d5e8c61f2d33b0',
    get style() {
      return `${this.domain}/service/solu/style/id/${this.solu}`;
    },
    center: [102.63456549638585, 37.92808882713939],
    zoom: 12,
    roadName: '30b509952b9d48ca83f4fd06d8282b68',
    PointZoomMax: 14,
    IconZoomMin: 14,
  },
  maps: {
    solu: [7086, 7048, 7087],
    token: ['2c04ea7cbca649f984d2c859f891c614', '97edcedb932a459ca40993c419d3d4d4', '5e783cba9d0141919904c4772af9d063'],
    style: ['//117.156.126.6:9080/service/solu/style/id/7086', '//117.156.126.6:9080/service/solu/style/id/7048', '//117.156.126.6:9080/service/solu/style/id/7087'],
    initStyle: 1
  },

  CUR_STATE: '', //实时或历史
  CUR_NAV: '0', //1-车辆监控台；2-POI分析展示；3-运营数据分析；4-交通城市画像
  CAR_TYPE: {
    type: 0,
    id: 'all',
    name: '全部车辆'
  }, //当前所选车辆类型

  // od home 页面数据
  OD_ANALYSISE_DATA_URL: 'static/data/od.json',
  // od 位置数据
  OD_MAP_DATA_URL: 'static/data/od-line.json',
  // index 页面图标数据

  INDEX_HISTORY_TOTAL_NUM_URL: '//117.156.126.6:10103/wuwei/getCarNum',
  INDEX_ONLINE_TYPE_ARR_URL: '//117.156.126.6:10103/wuwei/getCarRealTimeMsg',
  INDEX_ACTIVE_ARR_URL: '//117.156.126.6:10103/wuwei/getCarActiveMsg',
  INDEX_CAR_ARR_URL: '//117.156.126.6:10103/wuwei/type',
  INDEX_WARN_NUM_URL: '//117.156.126.6:10103/wuwei/warn',
  INDEX_ENERGY_ARR_URL: 'static/data/index-chart/energy.json',

  OD_BUS_DATA_URL: 'static/data/od-bus.json',
  INFRAST_TYPE: { //基础设施类型
    id: 'all',
    name: '全部类别',
    typeid:'0'
  },


  PLAY_START: 'START',
  PLAY_PAUSE: 'PAUSE',
  HISTORY_SPEED: 750,
  SPEED_INDEX: 4,

  USER_INFO_DATA_URL: 'static/data/userInfo.json',

  GLOBAL_INTERVAL: 30 * 1000,
  TIME_INTERVAL: 5,
  SINGLE_PATH_INTERVAL: 5 * 1000, //单车轨迹间隔
  SPEED_MIN: 5,
  SPEED_MAX: 200,
  MILE_TIMES: 10,

  BACKGROUND_LAYER_ID: '6a6377987929469995b7604460a1e04b',

  service: {
    url_root: '//117.156.126.6:10103/wuwei/', //茂珂
    url_root_new:'//192.168.1.109:8003/wuwei/',//珂本地ip
    root: '//192.168.101.197:8003/wuwei/', //沛泽
    base: '//117.156.126.6:10101/', //雷哥
    test: '//192.168.101.113:8003/wuwei/', //雷哥
    //全部实时在线车辆
    /*get real_custom() {
      return '//117.156.126.6:10001/custom/pbf/{z}/{x}/{y}?id=22&param='
    },*/
    get getLoginUrl(){
      return this.url_root + "login?username="
    },

    get real_custom() {
      //return '//172.21.9.189:8003/wuwei/getCarSprinkledPoint/{z}/{x}/{y}/'
      return this.url_root+'getCarSprinkledPoint/{z}/{x}/{y}/'
    },
    //公司实时在线车辆位置
    get real_company() {
      //return this.base + 'custom/pbf/{z}/{x}/{y}?id=23&param='
      return this.url_root + 'getCarActiveData/{z}/{x}/{y}/'

    },

    //全部实时在线车辆-报警信息
    get realWarnList() {
      return this.url_root + 'getAlarmInfo'
    },

    //实时在线车辆-公司报警信息
    get realCompanyWarn() {
      return this.url_root + 'getAlarmInfoByCompanyId?companyid='
    },

    //单车实时报警信息
    get realSingleWarn() {
      return this.url_root + 'getAlarmInfoByTimeAndCarNum?car_num='
    },

    //全部实时在线车辆
    get reverseGeocoding() {
      return '//minedata.cn/service/coder/reverseGeocoding?token=54c0f0f11532453484d5e8c61f2d33b0&source=3&location='
    },

    //搜索单车列表
    get searchSingleCar() {
      return this.url_root + 'getSearchCar?content='
    },

    //公司查询
    get searchCompany() {
      return this.url_root + 'getSearchCompany?content='
    },

    //单车信息查询
    get searchCarInfo() {
      return this.url_root + 'getCarInfoByCarNum?car_num='
    },

    //单车实时轨迹
    get realSingleCar() {
      return this.url_root + 'custom/geojson?id=24&param='
    },
    /*get realSingleCar2(){
      return '//172.21.5.67:8003/wuwei/getCarRealTrac?carNum='
     },*/
    get realSingleCar2() {
      return this.url_root + 'getCarRealTrac?carNum='
    },
    // get realSingleCar2(){return '//192.168.101.113:8003/wuwei/' + 'getCarRealTrac?carNum='},
    //单车历史轨迹
    // get historySingleCar(){return this.base + '/custom/geojson?id=18&param='},
    get historySingleCar() {
      return this.url_root + 'getCarHisTrac?'
    },

    //单车历史轨迹-里程信息
    get historyPathInfo() {
      return this.url_root + 'getCarMileage?'
    },

    //单车历史-报警信息
    get historyWarList() {
      return this.url_root + 'getPreciseAlarmInfoByTimeAndCarNum?car_num='
    },


    //城市一张图基础设施
    get infrastAll() {
      return this.url_root + 'selectCompanyByRequest?type=0&input='
    },
    get infrastSearchAddress() {
      return this.url_root +'selectCompanyByRequest?'
    },
    get infrastListAddress() {
      return  this.url_root +'getCompanyCount'
    }, //城市一张图基础设施列表

    get totalIndexAddress() {
      return '//36.111.84.101:8001/indexService/ranking/cityArea/realtime/620600/01/'
    }, //城市交通画像延时指数01 03拥堵指数  传当前时间
    get roadIndexAddress() {
      return '//36.111.84.101:8001/indexService/basic/road/realtime/620600/01/'
    }, //城市交通画像不同道路延时指数   传当前时间
    get indexTodayChartsAddress() {
      return '//36.111.84.101:8001/indexService/analysis/realtime/cityCompare/right/01/'
    }, //交通指数图表 今日数据
    //交通指数图表  昨日数据
    get indexYestodayChartsAddress() {
      return '//36.111.84.101:8001/indexService/analysis/selfCompare/realtime/'
    },

    // 历史热力
    get historyHeatmap() {
      return this.base + 'custom/pbf/{z}/{x}/{y}?id=25&param='
    },

    get loginUser() {
      return this.url_root +'getUserMsg?deptid='
    },
  },
  TRAFFIC_LAYER_IDS: [
    [
      "99ed778eda214faeb56272a22380da94",
      "4a8b811361124ec7a538b9a1725ee3cc",
      "05dce1aefd09493fbdf287a56c7b521e",
      "d68c7f1e698841e48db489e747a19a36",
      "486b946aab644313914dd6bb7bb95acb",
      "11698d75fb1e41bc87e63a95ac1282ca",
      "7f954f4bbb1541d0ba812ffcc8da2236",
      "30b816a71be04be5bc703b3577f3dfac",
      "577c0ff5ef00403abc5b92f6400af509",
      "296435a58a144fde88e770ceae6df3ac",
      "82c1cdb9c4b14195bd97e909849f83e5",
      "4080e2e311c249e2b90623e5b0af621c",
      "01872f7c80464784b98d2cbbb866ca9c",
      "6e698add93e1436b9f499d9351f3e479",
      "de7e47fea23f48f2b17acd9567f33fed",
      "9f4f5fbb82034fd7a8fb6c0745b68787",
      "eee26342efb947318b211b33aa76b8e2"
    ],
    [
      "e21f0b72f0854315aba34149da40e178",
      "bf930b1cad58491a991921d3d44ac183",
      "4d0cd1f3424e4c3c81f6db91bbac5b5e",
      "4d0fb4a78a7847fca16a5173e856c3d9",
      "a0d29aa5e50b47d49911fe680e3e85c6",
      "98d1976c33594d2ab1e899c37a71e540"
    ],
    [
      "b84879b321f74f998003a8fb4f7ca361",
      "613adffd36d1497bb58acb8c215b97d7",
      "3d08cf72137d4b6a8e39df287bc2b73d",
      "d5794dde56024387a4bc2eec5c30e28d",
      "50623efc8f0c436486d6b3f8aa692b36",
      "161fd8c48145497da8415d68668e35b9",
      "bc0d0e09bc4d494f9a5d58920dbeabef",
      "e7d1ef42ebda4b11b6c175e16dd6a0d6",
      "51cf7330331e4fb6b7b2abd8322b25cb",
      "5b5ed483b2744588ae5b175c1adc5310",
      "a47ae3e240554bec9c02b9260fb3d060",
      "90856c72f7e14a42bab02e0af71a4f2b",
      "69c69e210c4b47a386d5aed84c275f82",
      "3f1deccf10794e27a9d7e73286a56f50",
      "c0f2b981a1d9403b9171c20c43d68123",
      "08c84cefcf3f40a1bf7afa3c15fe4e6c",
      "9e7acab473a64e449ac9e256ad5d56cf"
    ]
  ]
}
